home *** CD-ROM | disk | FTP | other *** search
- ; d0 - length
-
- xdef _NewStr
-
- _NewStr movem.l d2/a6,-(a7)
- move.l d0,d2
- addq.l #2,d0 ; add header
- move.l #$50000,d1 ; MEMF_CLEAR|MEMF_REVERSE
- movea.l $4.w,a6
- jsr (-198,a6) ; AllocMem
- tst.l d0
- beq.s .finish
- addq.l #2,d0 ; shift by header
- movea.l d0,a0
- move.w d2,(-2,a0) ; this is private, and can be used only with RemStr()
- .finish movem.l (a7)+,d2/a6
- rts
-